# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.
#
# from AUR - adaptaed to our style.
#
# Old Maintainer: schuay i<jakob.gruber@gmail.com>
# Previous Maintainer:  TDY <tdy@gmx.com>
# Contributor: Massimiliano Torromeo <Massimiliano.Torromeo AT gmail DOT com>

pkgname=openssh-askpass
pkgver=2.1.0
pkgrel=4
pkgdesc='A plasma-like passphrase dialog for ssh.'
arch=('x86_64' 'aarch64')
url='http://hugo.pereira.free.fr/software/index.php?page=package&package_list=software_list_qt4&package=openssh-askpass&full=0'
license=('GPL')
depends=('openssh' 'qt5-x11extras' 'qt5-svg' 'xcb-util-keysyms')
makedepends=('cmake')
provides=('x11-ssh-askpass')
source=("http://hugo.pereira.free.fr/software/tgz/$pkgname-$pkgver.tar.gz")
install="$pkgname.install"
sha512sums=('4c686682da0ea399252fa2776c5940a2f0cc7f63ce228b362ee295c3002f96a1c2a90a2faac0933d41c007ff2c24527289399a54a9f548afe5b4ee233fbc31eb')

build() {
  cd "$pkgname-$pkgver"

  mkdir -p build && cd build

  cmake -DCMAKE_INSTALL_PREFIX=/usr -DUSE_QT5=ON ..
  make
}

package() {
  cd "$pkgname-$pkgver/build"

  make DESTDIR="$pkgdir" install
}

